#include "MegaDeclarativeClipboardModel.h"

#include <QtCore/QByteArray>
#include <QtCore/QHash>
#include <QtCore/QString>
#include "MegaClipboardModel.h"

class MegaDeclarativeClipboardModelPrivate
{
public:
	MegaDeclarativeClipboardModelPrivate()
	{
		// Nothing to do
	}

	virtual ~MegaDeclarativeClipboardModelPrivate()
	{
		// Nothing to do
	}

	bool activate(int _index)
	{
		return model.activate(_index);
	}

	MegaClipboardModel model;
	QString filterPattern;
};

MegaDeclarativeClipboardModel::MegaDeclarativeClipboardModel(QObject * _parent)
	: QSortFilterProxyModel(_parent)
	, d_ptr(new MegaDeclarativeClipboardModelPrivate)
{
	Q_D(MegaDeclarativeClipboardModel);
	setSourceModel(&d->model);
}

MegaDeclarativeClipboardModel::~MegaDeclarativeClipboardModel()
{
	Q_D(MegaDeclarativeClipboardModel);
	delete d;
}

void MegaDeclarativeClipboardModel::classBegin()
{
}

void MegaDeclarativeClipboardModel::componentComplete()
{
}

bool MegaDeclarativeClipboardModel::activate(int _index)
{
	Q_D(MegaDeclarativeClipboardModel);
	return d->activate(_index);
}
